﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LogOut-GFC.aspx.cs" Inherits="LogOut_GFC" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<<%@ Import Namespace="SAMPRO.Web.GFC" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Log Out GFC User</title>
    <script type="text/javascript" src="http://www.google.com/jsapi"></script>
    <%--<!– Load the Google AJAX API Loader –>--%>
    <script type="text/javascript"> 
    //    <!– Load the Google Friend Connect javascript library. –>
    google.load('friendconnect', '0.8');
    </script>
    <script type="text/javascript"> 
    // <!– Initialize the Google Friend Connect OpenSocial API. –>
      google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
      google.friendconnect.container.loadOpenSocialApi(
      {
         site: '<%=gfcAppConfig.GetGfcSiteId(this.Application)%>',
         onload: function(securityToken) 
         {
            if (!window.timesloaded) 
            {
               window.timesloaded = 1;
               google.friendconnect.requestSignOut();
               window.top.location.href = "/";
            }
            else 
            {
               window.timesloaded++;
            }
            if (window.timesloaded > 1) 
            {
                window.top.location.href = "auth/Login-GFC.aspx";
            }
         }
      }
    );
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         
    </div>
    </form>
</body>
</html>
